package com.alog.senior.day08;

import java.util.Scanner;

/**
 * @Auther: Ye Zhengdong
 * @Date: 2019/1/18 09:51
 * @Description:
 */
public class DemoStringCounter {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();

        int upperCounts = 0;
        int lowerCounts = 0;
        int numberCounts = 0 ;
        int otherCounts = 0;
        char[] chars = str.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            char ch = chars[i];
            if(ch <= 'Z' && ch >= 'A'){
                upperCounts++;
            } else if(ch <= 'z' && ch >= 'a'){
                lowerCounts++;
            } else if(ch >= '0' && ch < '9'){
                numberCounts++;
            } else {
                otherCounts++;
            }
        }

        System.out.println("大写个数:" + upperCounts);
        System.out.println("小写个数:" + lowerCounts);
        System.out.println("数字个数:" + numberCounts);
        System.out.println("其它个数:" + otherCounts);
    }
}
